package main.pack;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;


public class HoroscopeAppMainActivity extends Activity  {
	
	//Request Code for ReadHoroscopeActivity
	protected static final int REQUEST_CODE = 10;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {

       
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
       
        final ImageButton buttonAquarius = (ImageButton) findViewById(R.id.idAquarius);
        buttonAquarius.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "varsator");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonAries = (ImageButton) findViewById(R.id.idAries);
        buttonAries.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "berbec");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonCancer = (ImageButton) findViewById(R.id.idCancer);
        buttonCancer.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "rac");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonCapricorn = (ImageButton) findViewById(R.id.idCapricorn);
        buttonCapricorn.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "capricorn");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonGemini = (ImageButton) findViewById(R.id.idGemini);
        buttonGemini.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "gemeni");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
  
        final ImageButton buttonLeo = (ImageButton) findViewById(R.id.idLeo);
        buttonLeo.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "leu");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonLibra = (ImageButton) findViewById(R.id.idLibra);
        buttonLibra.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "balanta");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonPisces = (ImageButton) findViewById(R.id.idPisces);
        buttonPisces.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "pesti");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonSagittarius = (ImageButton) findViewById(R.id.idSagittarius);
        buttonSagittarius.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "sagetator");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonScorpio = (ImageButton) findViewById(R.id.idScorpio);
        buttonScorpio.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "scorpion");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonTaurus = (ImageButton) findViewById(R.id.idTaurus);
        buttonTaurus.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "taur");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
        final ImageButton buttonVirgo = (ImageButton) findViewById(R.id.idVirgo);
        buttonVirgo.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	
            	Intent in = new Intent();
                
                in.setClass(HoroscopeAppMainActivity.this, ReadHoroscopeActivity.class);
                
        		in.putExtra("sign", "fecioara");
        		setResult(1,in);
                startActivityForResult(in, REQUEST_CODE);
            }
          });
        
    }// end onCreate

	
}// end HoroscopeAppMainActivity
